#!/bin/sh
if [ ! -f target/dist/start ]; then
    echo building ...
    mvn -q clean package
    cd target/dist
    tar xzf *.tar.gz
else
    cd target/dist
fi
./run $*